Changes to be able to build and deploy lomiri-system-settings#82
Open
uxes wants to merge 2 commits intoubports:masterfrom
Open
Changes to be able to build and deploy lomiri-system-settings#82uxes wants to merge 2 commits intoubports:masterfrom
uxes wants to merge 2 commits intoubports:masterfrom
Conversation
1. fixing error `--force-yes is deprecated, use one of the options starting with --allow instead` 2. when building lomiri-system-settings and deploing locally, apt is ignoring the local version (e.g. 1.0.2+1local~1725113893) and wanting the repository version (e.g. 1.0.2+0~20240710053303.1+ubports20.04~1.gbp001aac) this change is forcing the local version https://forums.ubports.com/topic/9536/error-while-installing-lomiri-systems-settings
resolves issue dpkg: error processing archive /tmp/repo//lomiri-system-settings_1.0.2+1local~1725131539_arm64.deb (--unpack): unable to create '/usr/share/session-migration/scripts/lomiri-system-settings-datahome-migration.sh.dpkg-new' (while processing './usr/share/session-migration/scripts/lomiri-system-settings-datahome-migration.sh'): Read-only file system dpkg: error while cleaning up: unable to remove newly-extracted version of '/usr/share/session-migration/scripts/lomiri-system-settings-datahome-migration.sh': Read-only file system
Contributor
Author
result after this patch |
peat-psuwit
requested changes
Oct 31, 2024
| device exec "SUDO_ASKPASS=/tmp/askpass.sh sudo -A sed -i '/Pin-Priority/c\Pin-Priority: 50' /etc/apt/preferences.d/extra-ppas.pref" | ||
| device exec SUDO_ASKPASS=/tmp/askpass.sh sudo -A apt-get update -o Dir::Etc::sourcelist="/tmp/repo/sources.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | ||
| device exec SUDO_ASKPASS=/tmp/askpass.sh sudo -A apt-get dist-upgrade -o Dir::Etc::sourcelist="/tmp/repo/all.list" --yes --force-yes | ||
| device exec SUDO_ASKPASS=/tmp/askpass.sh sudo -A umount /usr/share/session-migration/scripts |
Contributor
There was a problem hiding this comment.
Well... the path(s) to unmount will vary from device to device and from package to package. Not every device will have /usr/share/session-migration/scripts as a bind-mount. Hard-coding this here isn't particularly a good solution.
I don't have a good solution for this yet, so for now you'll have to manually run umount command as it dpkg complains. We probably should document this somewhere though...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixing warning
--force-yes is deprecated, use one of the options starting with --allow insteadwhen building lomiri-system-settings and deploing locally, apt is ignoring the local version (e.g. 1.0.2+1local~1725113893) and wanting the repository version (e.g. 1.0.2+0~20240710053303.1+ubports20.04~1.gbp001aac) this change is forcing the local version https://forums.ubports.com/topic/9536/error-while-installing-lomiri-systems-settings
fixed just with
-fresolved umounting manually
sudo umount /usr/share/session-migration/scripts